package minitmysql

import (
	"gitee.com/dennis-mxx/gcode-common/menv"
	"gitee.com/dennis-mxx/gcode-common/mlogger"
	"gitee.com/dennis-mxx/gcode-data/mdata"
)

func LoaderMysql(logger *mlogger.TraceLogger) {
	if menv.Environment.Mysql != nil && len(menv.Environment.Mysql) > 0 {
		mdata.InitMysql(logger, menv.Environment.Mysql)
	}
}
